package hari3.latihan;

import junit.framework.Assert;

import org.junit.Test;

public class CopyOfCalculatorTestNull {
	@Test(expected=IllegalArgumentException.class)
	public void tambahArgumenPertama() {
		Calculator c= new Calculator();
		c.tambah(null, 15);		
	}
	@Test(expected=IllegalArgumentException.class)
	public void kurangArgumenPertama() {
		Calculator c= new Calculator();
		c.kurang(1,null);
	}
	@Test(expected=IllegalStateException.class)
	public void bagiArgumenKeduaNull() {
		Calculator c= new Calculator();
		c.bagi(1D,null);
	}
	@Test(expected=IllegalStateException.class)
	public void bagiArgumenKeduaNol() {
		Calculator c= new Calculator();
		c.bagi(1D,0D);
	}
}
